<template>
	<div id="app">
		<el-container>
			<el-header>
				<img src="~@/assets/logo.png" class="he__logo" alt="" />
				<img src="~@/assets/jjmxb.png" class="he__logotext" alt="" />
			</el-header>
			<el-container class="con" style="height: calc(100vh - 113px);">
				<el-aside>
					<div class="cz">
						<el-radio-group v-model="radio1">
							<el-radio-button label="工资计算"></el-radio-button>
							<el-radio-button label="日常月结"></el-radio-button>
						</el-radio-group>
					</div>
					<div class="form">
						<div class="form_title">
							选择时间：
							<el-checkbox v-model="checked" size="small">仅显示工资总表人员</el-checkbox>
						</div>
						<div class="form_title" style="background-color: #fff;">
							<el-radio v-model="radio" label="1">按日期</el-radio>
							<div class="sjbtn">
								确认
							</div>
						</div>
						<div class="form_title" style="background-color: #fff;">
							<el-input size="mini" placeholder="起：2024-01-01" suffix-icon="el-icon-date" v-model="input4">
							</el-input>
							-
							<el-input size="mini" placeholder="止：2024-01-01" suffix-icon="el-icon-date" v-model="input4">
							</el-input>
						</div>
						<div class="form_title" style="background-color: #fff;">
							<el-radio v-model="radio" label="2">按月</el-radio>
							<!-- <div class="sjbtn">
								确认
							</div> -->
						</div>
						<div class="form_title flex1" style="background-color: #fff;">
							<el-input size="mini" placeholder="2024.04" suffix-icon="el-icon-date" v-model="input4">
							</el-input>
						</div>
						<div class="form_title">
							选择类型：
							<el-checkbox v-model="checked" size="small">显示标尺</el-checkbox>
						</div>
						<div class="form_title" style="background-color: #fff;">
							<el-radio v-model="radio2" label="1">打印本页</el-radio>
							<!-- <div class="sjbtn">
								确认
							</div> -->
						</div>
						<div class="form_title" style="background-color: #fff;">
							<el-radio v-model="radio2" label="2">打印全部</el-radio>
							<!-- <div class="sjbtn">
								确认
							</div> -->
						</div>
						<div class="form_title" style="background-color: #fff;">
							<el-radio v-model="radio2" label="3">按范围</el-radio>
							<!-- <div class="sjbtn">
								确认
							</div> -->
						</div>
						<div class="form_title" style="background-color: #fff;">
							<el-input size="mini" placeholder="从：" suffix-icon="el-icon-date" v-model="input4">
							</el-input>
							-
							<el-input size="mini" placeholder="至：" suffix-icon="el-icon-date" v-model="input4">
							</el-input>
						</div>
					</div>


				</el-aside>
				<el-main>
					<div class="mian__top" ref="mian__top">
						<div>
							<el-button v-for='(item,index) in btnlist' :key="index"
								:style="{color:item.color,background:item.bgcolor}">{{item.text}}</el-button>
						</div>
						<div class="mian__top__right" style="display: flex;align-items: center;justify-self: flex-end;">
							<el-checkbox label="标尺"></el-checkbox>
							<div class="right_btn">
								计件工资计件
							</div>
						</div>
					</div>
					<div class="mian__box" :style="{height:`calc(100% - 30px - ${mainTopheight}px)`}">
						<router-view></router-view>
					</div>
				</el-main>
			</el-container>
		</el-container>

	</div>
</template>
<script>
	export default {
		data() {
			return {
				radio1: '工资计算',
				radio: 1,
				radio2:1,
				checked: true,
				input4:'',
				
				form: {
					value1: '2024-03-09',
					value: '10086',
					v: ""
				},
				btnlist: [{
						text: '明细',
						bgcolor: '#dbe4fd',
						color: '#231918'
					}, {
						text: '设备',
						bgcolor: '#dbe4fd',
						color: '#231918'
					}, {
						text: '预览',
						bgcolor: '#dbe4fd',
						color: '#231918'
					}, {
						text: '页面',
						bgcolor: '#dbe4fd',
						color: '#231918'
					}, {
						text: '打印',
						bgcolor: '#dbe4fd',
						color: '#231918'
					}, {
						text: '刷新',
						bgcolor: '#dbe4fd',
						color: '#231918'
					}, {
						text: '项目',
						bgcolor: '#dbe4fd',
						color: '#231918'
					}, {
						text: '传出',
						bgcolor: '#dbe4fd',
						color: '#231918'
					},{
						text: '过滤',
						bgcolor: '#dbe4fd',
						color: '#231918'
					},
					{
						text: '关闭',
						bgcolor: '#dbe4fd',
						color: '#231918'
					}
				],
				mulist: [{
					title: '10.销售品',
					list: [{
						title: '销售品1',
						list: [{
							title: '织带'
						}, {
							title: '飘带'
						}, {
							title: '肩带'
						}, ]
					}, {
						title: '销售品2',
						list: [{
							title: '织带'
						}, {
							title: '飘带'
						}, {
							title: '肩带'
						}, ]
					}, {
						title: '销售品3',
						list: [{
							title: '织带'
						}, {
							title: '飘带'
						}, {
							title: '肩带'
						}, ]
					}]
				}, {
					title: '20.材料(制单)',
					list: [{
						title: '销售品1',
						list: [{
							title: '织带'
						}, {
							title: '飘带'
						}, {
							title: '肩带'
						}, ]
					}, {
						title: '销售品2',
						list: [{
							title: '织带'
						}, {
							title: '飘带'
						}, {
							title: '肩带'
						}, ]
					}, {
						title: '销售品3',
						list: [{
							title: '织带'
						}, {
							title: '飘带'
						}, {
							title: '肩带'
						}, ]
					}]
				}, {
					title: '30.材料(往来)',
					list: [{
						title: '销售品1',
						list: [{
							title: '织带'
						}, {
							title: '飘带'
						}, {
							title: '肩带'
						}, ]
					}, {
						title: '销售品2',
						list: [{
							title: '织带'
						}, {
							title: '飘带'
						}, {
							title: '肩带'
						}, ]
					}, {
						title: '销售品3',
						list: [{
							title: '织带'
						}, {
							title: '飘带'
						}, {
							title: '肩带'
						}, ]
					}]
				}, {
					title: '40.本厂裁片',
					list: [{
						title: '销售品1',
						list: [{
							title: '织带'
						}, {
							title: '飘带'
						}, {
							title: '肩带'
						}, ]
					}, {
						title: '销售品2',
						list: [{
							title: '织带'
						}, {
							title: '飘带'
						}, {
							title: '肩带'
						}, ]
					}, {
						title: '销售品3',
						list: [{
							title: '织带'
						}, {
							title: '飘带'
						}, {
							title: '肩带'
						}, ]
					}]
				}, {
					title: '60.其他',
					list: [{
						title: '销售品1',
						list: [{
							title: '织带'
						}, {
							title: '飘带'
						}, {
							title: '肩带'
						}, ]
					}, {
						title: '销售品2',
						list: [{
							title: '织带'
						}, {
							title: '飘带'
						}, {
							title: '肩带'
						}, ]
					}, {
						title: '销售品3',
						list: [{
							title: '织带'
						}, {
							title: '飘带'
						}, {
							title: '肩带'
						}, ]
					}]
				}],
				curindex: '',
				mainTopheight: 0
			}
		},
		mounted() {
			// let height = this.$refs.mian__top.offsetHeight; //100
			this.mainTopheight = this.$refs.mian__top.offsetHeight
			let _this = this
			window.onresize = function() {
				_this.mainTopheight = _this.$refs.mian__top.offsetHeight
				// console.log(height)
			};

		},

	}
</script>
<style scoped>
	* {
		padding: 0;
		margin: 0;
	}

	.el-header {
		background-color: #fff;
		height: 111px !important;
		display: flex;
		align-items: center;
		padding-left: 43px;

	}

	.he__logo {
		width: 64px;
		height: 53px;
		margin-right: 5px;
	}

	.he__logotext {
		width: 160px;
		height: 24px;
	}

	.el-aside {
		background-color: #fff;
		width: fit-content !important;
		padding: 0 16px 0 44px;

	}

	.el-main {
		padding: 0 !important;
		background-color: #f1f4f6;
	}

	.con {}

	.dian {
		width: 9px;
		height: 9px;
		border-radius: 50%;
		border: 3px solid #4A77F6;
		margin-right: 25px;
		justify-content: center;
		opacity: 0.39;
	}

	.el-submenu-title-1 {
		display: flex;
		align-items: center;
		font-size: 19px;
		padding-left: 20px;
	}

	.dian1 {
		width: 8px;
		height: 8px;
		background: #4E6781;
		border-radius: 4px;
		opacity: 0.5;
		margin-right: 5px;

	}

	.el-submenu .el-menu-item {
		font-size: 16px;
		padding-left: 90px !important;
	}

	.active {
		opacity: 1;
	}

	.lefttop {
		height: 61px;
		background: #4A77F6;
		display: flex;
		align-items: center;
		font-family: Alibaba PuHuiTi;
		font-weight: 400;
		font-size: 21px;
		color: #FFFFFF;


	}

	.lefttop__icon {
		width: 30px;
		height: 30px;
		margin-left: 44px;
		margin-right: 17px;
	}

	.cz {
		display: flex;
		align-items: center;


	}

	.cz__item {
		width: 25%;
		background: rgba(74, 119, 246, .5);
		font-family: Alibaba PuHuiTi;
		font-weight: 400;
		font-size: 18px;
		color: #231918;
		display: flex;
		align-items: center;
		justify-content: center;
		margin: 0 1px 0 0;
		cursor: pointer;
		margin-bottom: 5px;
	}

	.el-button+.el-button {
		margin-left: 2px;
	}

	.mian__top {
		background-color: #fff;
		padding-bottom: 5px;
		display: flex;
		justify-content: space-between;
	}

	.mian__box {
		width: calc(100% - 30px);
		padding: 15px;
	}


	/* 隐藏 Chrome、Safari 和 Opera 的滚动条 */
	.el-aside::-webkit-scrollbar {
		display: none;
	}

	/* 隐藏 IE、Edge 和 Firefox 的滚动条 */
	.el-aside {
		-ms-overflow-style: none;
		/* IE and Edge */
		scrollbar-width: none;
		/* Firefox */
	}

	.form_item {
		display: flex;
		align-items: center;
		margin-top: 13px;
	}

	/deep/.el-input__inner {
		width: 135px;
		padding-left: 10px;
	}

	.el-input {
		width: fit-content;

	}

	/deep/.el-input-group__prepend {
		padding: 0 10px;
		width: 79px;
	}

	/deep/.el-input__icon {
		width: 20px;
	}

	/deep/.el-input--suffix .el-input__inner {
		padding-right: 20px;
	}


	/deep/.bz .el-input {
		width: 100%;
		display: flex;
	}

	/deep/.bz .el-input .el-input__inner {
		width: 100%;
	}

	/deep/.bz .el-input .el-input-group__prepend {
		flex-shrink: 0;
		/* width: 79px;  */
		display: flex;
		align-items: center;
	}

	.bz {
		display: flex;
		flex: 1;
		margin-top: 13px;
		position: relative;
	}

	.qian {
		position: absolute;
	}

	/deep/.qian {
		width: 97px !important;
		display: flex;
		left: calc(79px + 20px);

	}

	/deep/.qian .el-input__inner {
		width: 97px !important;
		border-radius: 0 !important;
	}

	.footer {
		display: flex;
		align-items: center;
		justify-content: space-between;
		font-family: Alibaba PuHuiTi;
		font-weight: 400;
		font-size: 15px;
		color: #1E173C;
		margin-top: 22px;
	}

	.footer_btn {
		width: 60px;
		height: 31px;
		background: #ececec;
		border: 1px solid #cbcbcb;
		display: flex;
		align-items: center;
		justify-content: center;
		color: #cbcbcb;
		cursor: pointer;
		margin-left: 22px;
		border-radius: 4px;
	}

	.btn1 {
		color: #4A77F6;
		border: 1px solid #4A77F6;
		background: #dbe4fd;
	}

	.form_title {
		width: 378px;
		height: 47px;
		background: #F5F7FA;
		display: flex;
		align-items: center;
		justify-content: space-between;
		font-family: Adobe Heiti Std;
		font-weight: normal;
		font-size: 17px;
		color: #1E173C;
		padding: 0 9px;
		margin-top: 12px;
	}

	.sjbtn {
		padding: 0 26px;
		line-height: 31px;
		background: rgba(74, 119, 246, 0.2);
		border: 1px solid #4A77F6;
		font-family: Alibaba PuHuiTi;
		font-weight: 400;
		font-size: 14px;
		color: #4A77F6;
		cursor: pointer;
		margin-left: 18px;
	}
	/deep/.form_title .el-input__inner{
		width: 175px;
	}
	/deep/.flex1 .el-input__inner{
		width: 378px;
	}
	.mian__top__right{
		padding-right: 50px;
		
	}
	.right_btn {
		padding: 0 26px;
		line-height: 31px;
		background: rgba(74, 119, 246, 0.2);
		border: 1px solid #4A77F6;
		font-family: Alibaba PuHuiTi;
		font-weight: 400;
		font-size: 14px;
		color: #4A77F6;
		cursor: pointer;
		margin-left: 18px;
	}
</style>